//
//  AsyncImageView.h
//  异步请求图片
//
//  Created by markj on 2/18/09.
//  Copyright 2009 Mark Johnson. You have permission to copy parts of this code into your own projects for any use.
//  www.markj.net
//

#import <UIKit/UIKit.h>
#import "ASIHTTPRequest.h"
@class ASIHTTPRequest;

@interface AsyncImageView : UIView <ASIHTTPRequestDelegate> {
	UIImageView*  _showImageView;
	UIImage*   p_ImageBuffer;
	ASIHTTPRequest* _imageASIHttpRequest;
	RequestStatus _numStateRequested;// -1:无需要  0:需要  1:请求过了
	id  _imageRequestURL;//数据地址
	BOOL m_BoolSetImage;
    UIActivityIndicatorView* p_ActLoadView;
}
@property BOOL m_BoolSetImage;
@property RequestStatus _numStateRequested;
@property(nonatomic,retain)id _imageRequestURL;


//请求自身目标的 URL图片
- (void)customLoadImageFromURL;

//获得当前图片
-(UIImage*) GetUIImage;

//直接设置某张图片
-(void) SetUIImage :(UIImage*)img;

//更新图片
-(void) initSelfImgView :(UIImage*)img;

-(UIImage*) GetBufferImage;
@end
